package com.andy.blog.common.constant;

/**
 * 缓存的key 常量
 * Created by andy on 2023-04-05 11:38
 */
public interface CacheConstants {
    /**
     * 登录用户 redis key
     */
    String LOGIN_TOKEN_KEY = "login_tokens:";

    /**
     * 验证码 redis key
     */
    String CAPTCHA_CODE_KEY = "captcha_codes:";
    /**
     * 门户验证码 redis key
     */
    String PORTAL_CAPTCHA_CODE_KEY = "portal_captcha_codes:";

    /**
     * 配置中心  config cache key
     */
    String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    String SYS_DICT_KEY = "sys_dict:";

    /**
     * 防重提交 redis key
     */
    String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 限流 redis key
     */
    String RATE_LIMIT_KEY = "rate_limit:";

    /**
     * 登录账户密码错误次数 redis key
     */
    String PWD_ERR_CNT_KEY = "pwd_err_cnt:";

    /*---------------------------------------------------字典类型start----------------------------------*/
    /**
     * 缓存-字典类型
     */
    String SYS_NORMAL_DISABLE = "sys_normal_disable";
    /**
     * 系统状态
     */
    String SYS_COMMON_STATUS = "sys_common_status";
    /**
     *
     */
    String SYS_OPER_TYPE = "sys_oper_type";

    /*---------------------------------------------------字典类型end-------------------------------------*/


    /**
     * 博客信息
     */
    String BLOG_INFO_CACHE = "blog_info_cache";
    /**
     * 每日一言
     */
    String BLOG_HITOKOTO_CACHE = "blog_hitokoto_cache";

    /**
     * 文章浏览量
     */
    String ARTICLE_VIEW_COUNT = "article_view_count";

    /**
     * 文章点赞量
     */
    String ARTICLE_LIKE_COUNT = "article_like_count";

}
